<template>
  <div style="background-color: aquamarine">
    <h3>自定义事件通信</h3>
    <hr />
    <Child class="test" a="1" b="2" @xxx="xxx" @yyy="yyy" />
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "Event",
});
</script>

<script setup lang="ts">
import Child from "./Child.vue";
const xxx = () => {
  console.log("xxx");
};

const yyy = () => {
  console.log("yyy");
};
</script>
